<template>
	<div class="admin" id="admin">
		<div class="st_t1">
			管理员设置
		</div>
		<div class="add_name">
			<button v-on:click="addAdmin()">新增管理员</button>
		</div>
		<admintable></admintable>
		
	</div>
</template>

<script>
	
	import admintable from './pannel/admin_table'
	export default {
		name: 'admin',
		computed: {
		},
		data() {
			return {
				title: '',
			}
		}, //定义变量
		components: {
			admintable,
//			BMapComponent
		}, //注册组件
		methods: {//方法都在这里
			addAdmin:function(){
				var that=this;
				that.$router.push({
					path: '/user/addadmin'
				})
			},
			editadmin:function(){
				var that=this;
				that.$router.push({
					path: '/user/editadmin'
				})
			}
		},
		mounted() {
			var that = this;
			//获取banner
		},
	}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss">
	.admin {
		text-align: left;
		.st_t1 {
			line-height: 40px;
			font-size:24px;
			font-weight: normal;
			background:#ECECEC;
			padding-left:20px;
		}
		.add_name{
			margin-top:40px;
			text-align: right;
			button{
				width:140px;
				height:40px;
				background:#007AFF;
				cursor: pointer;
				color:#fff;
				border-radius:4px;
			}
		}
	}
</style>